<?php 
include  "/../protegido/protected.php"; /*Valida el inico de sesion*/
?>
<!DOCTYPE HTML>
<html lang="es">

<head>
       <meta charset="UTF-8">
		<title>Ingresar Libro</title>

                    <meta charset="UTF-8">
                    <title>LYMASYS</title>
                    <!-- Bootstrap -->
                    <link href="../bootstrap/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
                    <link href="../bootstrap/css/bootstrap.css" rel='stylesheet' type='text/css' />
                    <meta name="viewport" content="width=device-width, initial-scale=1">

                    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

                    <!--  webfonts  -->

                    <!-- // webfonts  -->
                    <link href="../bootstrap/css/style.css" rel="stylesheet" type="text/css" media="all" />
                    <!-- start plugins -->
                    <script type="text/javascript" src="../bootstrap/js/jquery.js"></script>
                    <script type="text/javascript" src="../bootstrap/js/jquery.min.js"></script>
                    <script type="text/javascript" src="../bootstrap/js/bootstrap.js"></script>
                    <script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>

	<body class="header_bg">>

                                    <div class="row header">
                                    <nav class="navbar" role="navigation">
                                      <div class="container-fluid">
                                        <!-- Brand and toggle get grouped for better mobile display -->
                                        <div class="navbar-header">
                                          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                                            <span class="sr-only">Toggle navigation</span>
                                            <span class="icon-bar"></span>
                                            <span class="icon-bar"></span>
                                            <span class="icon-bar"></span>
                                          </button>
                                          <a class="navbar-brand" href="../Menu/index.html"><img src="../Imagenes/logo.png" alt="" class="img-responsive"/> </a>
                                        </div>
                                        <!-- Collect the nav links, forms, and other content for toggling -->
                                       <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                          <ul class="menu nav navbar-nav ">
                                               
                                            <li ><a href="../Menu/index.html">Inicio</a></li>
                                            <li ><a href="../Usuarios/modificarInformacion.php">Usuarios</a></li>

                                            <li class="active"><a href="">Libros</a></li>
                                            <li><a href="">Prestamos</a></li>
                                            <li><a href="">Biblioteca Virtual</a></li>
                                            <li><a href="">Material Tecnol&oacute;gico</a></li>
                                            <li><a href="">Reportes</a></li>
                                            <li><a href="">ayuda</a></li>
                                            <li>
                                                <a class="icon-ok" href="../protegido/logoutAdmin.php">Salir</a>
                                             
                                           </li>
                                            <div class="container-fluid">
                             
                                                   </div>
                                            <!--<li><span class="glyphicon glyphicon-chevron-down"></span></li>-->

                                               
                                          </ul>

                                          <!-- imagen del administrador 
                                          <form class="navbar-form navbar-right" role="search">
                                            <div class="form-group my_search">
                                              <input type="text" class="form-control" placeholder="Search">
                                            </div>
                                            <button type="submit" class="btn btn-default">Search</button>
                                          </form>-->
                                        </div><!-- /.navbar-collapse -->
                                      </div><!-- /.container-fluid -->
                                    </nav>
                                    </div>

	    <header>
			<h1 align="center">&nbsp;</h1>
			
		</header>
        
        <script src="media/js/jquery.js"></script>
		<script src="media/js/jquery.dataTables.js"></script>
        <link rel="stylesheet" type="text/css" href="media/css/demo_table.css">
        <link rel="stylesheet" type="text/css" href="media/css/jquery.dataTables_themeroller.css">
        
        <script type="text/javascript" charset="utf-8">
			$(document).ready(function() {
                $('#datatables').dataTable();
            })
		</script>
		
   	<div>
    	<div>
        	<div class="table-responsive">
             <imput type"button" >ingresar nuevo libro</imput>   
        <p>&nbsp;</p>
	        	<p>&nbsp;</p>
                    
                    <table id="datatables" class="table table-bordered">
                      <thead>
                            <?php
                            include('conn/conn.php');  
                            echo "<tr>"; 
                            echo "<th>Id Libro</th>"; 
                            echo "<th>Id Clasificacion</th>"; 
                            echo "<th>Id Institucion</th>"; 
                            echo "<th>Nombre</th>"; 
                            echo "<th>Autor</th>";
                            echo "<th>Edicion</th>";
                            echo "<th>Año publicado</th>";
                            echo "<th>Genero</th>";
                            echo "<th>Tipo</th>";
                            echo "<th>Estado</th>";
                            echo "<th>Fecha Ing</th>";
                            echo "<th>Disponibilidad</th>";
                            echo "<th>Estado Fisico</th>";
                            echo "<th>Descripc</th>";
                            echo "<th>Opcion 1</th>"; 
                            echo "<th>Opcion 2</th>";					
                            echo "</tr>"; 
                            ?>
                      </thead>
                      
                          <tbody>
                                <?php
                            //echo "<th>Descripc</th>";
                                $result = mysql_query("SELECT * FROM `ls_06_registro_libro`") or trigger_error(mysql_error());
                                while($row = mysql_fetch_array($result))
                                {
                                    echo "</tr>";
                                    echo "<td valign='top'>". nl2br( $row['LS00IDLB']) .  "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS01IDCL']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS02IDINT']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS03NBLB']) . "</td>"; 
                                    echo "<td valign='top'>" . nl2br( $row['LS04AT']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS05ED']) . "</td>";   
                                    echo "<td valign='top'>" . nl2br( $row['LS06AP']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS07GN']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS08TP']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS09ET']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS10FI']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS11DB']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS12EF']) . "</td>";   
                                    echo "<td valign='top'>" . nl2br( $row['LS13DP']) . "</td>";                                 
                                     echo "<td valign='top'><a href=../modificar/modificaCliente.php?Tel={$row['LS00IDLB']} >Modificar</a></td>
                                    <td><a href=../eliminar/eliminarCliente.php?PKCli={$row['LS00IDLB']}>Eliminar</a></td>						"; 	
                                }
                                
                                mysql_close($link);
                                ?>
                          </tbody>
                    </table>
                		<p>&nbsp;</p>
					</div>	
                    <p>&nbsp;</p>
			</div>
                <div class="col-md-7 copy">
                <p class="link text-right"><span>&#169; Reservado todo los Derechos | Diseñado por&nbsp;<a href="http://LYMASYS/"> Javier Villa y Josue Morales</a></span></p>
            </div>
        </div>
</body>
</html>